package cn.lili.controller.feign.supplier;

import cn.lili.modules.store.service.SupplierAuditRecordService;
import cn.lili.modules.supplier.client.SupplierAuditRecordClient;
import cn.lili.modules.supplier.entity.dos.SupplierAuditRecord;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
public class SupplierAuditRecordFeignController implements SupplierAuditRecordClient {

    private final SupplierAuditRecordService supplierAuditRecordService;

    @Override
    public SupplierAuditRecord getBySupplierId(String supplierId) {
        return supplierAuditRecordService.getBySupplierId(supplierId);
    }

    @Override
    public boolean update(SupplierAuditRecord supplierAuditRecord) {
        return supplierAuditRecordService.updateById(supplierAuditRecord);
    }
}
